<!DOCTYPE html>
<html xmlns:th="http://thymeleaf.org">
<head>
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 <title>Inspire - Admin and Dashboard Template</title>
 <link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">
 <link rel="stylesheet" type="text/css" href="/assets/fonts/line-icons.css">
 <link rel="stylesheet" type="text/css" href="/assets/css/main.css">
 <link rel="stylesheet" type="text/css" href="/assets/css/responsive.css">
</head>
<body>
<div class="app header-default side-nav-dark">
 <div class="layout">
  <div class="header navbar">
   <div class="header-container">
    <div class="nav-logo">
     <a href="index.html">
      <b><img src="assets/img/logo.png" alt=""></b>
      <span class="logo"><img src="assets/img/logo-text.png" alt=""></span>
     </a>
    </div>


    <ul class="nav-right">
     <li class="search-box">
      <input class="form-control" type="text" placeholder="电影查询">
      <i class="lni-search"></i>
     </li>

     <li class="user-profile dropdown dropdown-animated scale-left">
      <a href="#" class="dropdown-toggle" data-toggle="dropdown">
       <img class="profile-img img-fluid" src="/assets/img/card/img-2.jpg" alt="">
      </a>
      <ul class="dropdown-menu dropdown-md">
       <li>
        <ul class="list-media">
         <li class="list-item avatar-info">
          <div class="media-img"><img src="/assets/img/card/img-2.jpg" alt=""></div>

          <div class="info">
           <span class="title text-semibold" th:text="${loginInfo.realName}">登录人姓名</span>
           <span class="sub-title" th:text="${loginInfo.userName}">账号</span>
          </div>
         </li>
        </ul>
       </li>
       <li role="separator" class="divider"></li>
       <li><a href="#"><i class="lni-cog"></i><span>设置</span></a></li>
       <li><a href="javascript:void(0)"><i class="lni-user"></i><span class="geren">个人信息</span></a></li>
       <li><a href="#"><i class="lni-envelope"></i><span>收件箱</span><span class="badge badge-pill badge-primary pull-right"></span></a></li>
       <li><a href="javascript:void (0)"><i class="lni-lock"></i><span id="tuichu">退出</span></a></li>
      </ul>
     </li>
    </ul>
   </div>
  </div>

  <div class="side-nav expand-lg">
   <div class="side-nav-inner">

    <ul class="side-nav-menu">

     <li class="side-nav-header"><span>导航菜单</span></li>

     <li class="nav-item dropdown">
      <a href="#" class="dropdown-toggle">
       <span class="icon-holder"><i class="lni-dashboard"></i></span>
       <span class="title">订单查询</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>

      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:void(0)" class="movieTicket">电影票查询</a></li>
       <li><a href="javascript:void(0)" class="cdyTicket">商品查询</a></li>
      </ul>
     </li>


     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#"><span class="icon-holder"><i class="lni-cloud"></i></span>
       <span class="title">商品管理</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:toJump('/commodity/query')">查询商品</a></li>
       <li><a href="javascript:toJump('/commodity/add')">添加商品</a></li>
       <li><a href="javascript:toJump('/commodity/modify')">修改商品</a></li>
       <li><a href="contact.html">删除商品</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-layers"></i></span>
       <span class="title">票房统计(本影城)</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:toJump('/order/day')">在播影片当天票房</a></li>
       <li><a href="javascript:toJump('/order/week')">在播影片本周票房</a></li>
       <li><a href="javascript:toJump('/order/month')">在播影片本月票房</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-timer"></i></span>
       <span class="title">活动</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:toJump('/sales/querySales')">电影/商品购买活动</a></li>
       <li><a href="javascript:toJump('/sales/saveSales')">增加购买活动</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-package"></i></span>
       <span class="title">购/退服务</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="line-icons.html">购买电影票</a></li>
       <li><a href="fontawesome-icons.html">购买商品</a></li>
       <li><a href="material-icons.html">退票</a></li>
       <li><a href="material-icons.html">退商品</a></li>
       <li><a href="material-icons.html">第三方退/购</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-files"></i></span>
       <span class="title">员工信息管理</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:void (0)" class="geren">个人信息查询</a></li>
       <li th:if="${ loginInfo.role == 0 }"><a href="javascript:toJump('/user/query')">员工信息查询</a></li>
       <li th:if="${ loginInfo.role == 0 }"><a href="javascript:toJump('/user/add')">新员工入职</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-control-panel"></i></span>
       <span class="title">影厅管理</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:toJump('/cinema/query')">查看影厅信息</a></li>
       <li><a href="javascript:toJump('/cinema/add')">添加影厅</a></li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-pie-chart"></i></span>
       <span class="title">影片管理</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>

      <ul class="dropdown-menu sub-down">
       <li>
        <a class="dropdown-toggle" href="#">
         <span class="title">未上映电影</span>
         <span class="arrow"><i class="lni-chevron-right"></i></span>
        </a>
        <ul class="dropdown-menu sub-down">
         <li><a href="google-map.html">添加电影</a></li>
         <li><a href="vector-map.html">修改电影</a></li>
         <li><a href="vector-map.html">删除电影</a></li>
        </ul>
       </li>

       <li>
        <a class="dropdown-toggle" href="#">
         <span class="title">已上映电影</span>
         <span class="arrow"><i class="lni-chevron-right"></i></span>
        </a>
        <ul class="dropdown-menu sub-down">
         <li><a href="google-map.html">修改场次</a></li>
         <li><a href="vector-map.html">修改票价</a></li>
         <li><a href="vector-map.html">下架电影</a></li>
        </ul>
       </li>
       <li>
        <a class="dropdown-toggle" href="#">
         <span class="title">已下架电影</span>
         <span class="arrow"><i class="lni-chevron-right"></i></span>
        </a>
        <ul class="dropdown-menu sub-down">
         <li><a href="google-map.html">删除电影</a></li>
         <li><a href="vector-map.html">重新上映</a></li>
        </ul>
       </li>
      </ul>
     </li>

     <li class="nav-item dropdown">
      <a class="dropdown-toggle" href="#">
       <span class="icon-holder"><i class="lni-files"></i></span>
       <span class="title">排片</span>
       <span class="arrow"><i class="lni-chevron-right"></i></span>
      </a>
      <ul class="dropdown-menu sub-down">
       <li><a href="javascript:toJump('/films/query')">开始排片</a></li>
       <li><a href="javascript:toJump('/films/select')">查询所有排片信息</a></li>
      </ul>
     </li>

    </ul>
   </div>
  </div>

  <div class="page-container">
   <div class="main-content">
    <div id="mainframe">
    </div>
   </div>
  </div>

   <footer class="content-footer">
    <div class="footer">
     <div class="copyright">
      <span>Copyright © 2020 <b class="text-dark">UIdeck</b>. All Right Reserved More Templates <a href="http://www.scnoob.com">菜鸟素材</a> - Collect from <a href="http://www.scnoob.com/moban">网页模板</a></span>
     </div>
    </div>
   </footer>
  </div>
 </div>
</div>

</body>
<script src="/assets/js/jquery-min.js"></script>
<script src="/ajax/jquery-1.8.3.js"></script>
<script src="/ajax/jump.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/jquery.app.js"></script>
<script src="/assets/js/main.js"></script>



<script type="text/javascript" th:inline="javascript">

 $(".cdyTicket").bind("click",function () {
  var id = [[${loginInfo.id}]];
  toJump("/order/queryCdy","&id="+id);
 })

 $(".movieTicket").bind("click",function () {
  var id = [[${loginInfo.id}]];
  toJump("/order/query","&id="+id);
 })

 $(".geren").bind("click",function () {
  var id = [[${loginInfo.id}]];
  toJump("/user/unique","&id="+id);
 })

 $("#tuichu").bind("click",function () {
   if(!confirm("确定退出吗")) return
   location.href = "/user/logoff";
 })


</script>
</html>